import "bootstrap/dist/css/bootstrap.css";
import "layui-layer/src/theme/default/layer.css";
import "layui-laydate/dist/theme/default/laydate.css";
import "font-awesome/css/font-awesome.css";
import "angular-loading-bar/build/loading-bar.css";
import '../style/app.css';
import "../style/base.css";
import "../style/custom_bootstrap.css";
import  "../style/entrance.css";
import "../style/media_table.css";
import "../style/feedback.css";
import "../style/lottery-award-tip.css";
import "../style/lottery-win-num-and-won-buyer.css";
import "../style/loadingbar.css";

import "jquery/dist/jquery";
import bootstrap from "bootstrap";
import moment from "moment";
import layer from "layui-layer";
import laydate from "layui-laydate/dist/laydate";
import angular from 'angular';
import uirouter from 'angular-ui-router';
import ngAnimate from "angular-animate";
import loadingbar from "angular-loading-bar";
import ngCookies from "angular-cookies";
import uibootstrap from "angular-bootstrap-npm/dist/angular-bootstrap-tpls"
import ngTouch from "angular-touch";
import ngValidateMatch from  "angular-validation-match";
import  paging from  "angular-paging/src/paging";
import customFilters from "../components/filters";
import 'oclazyload';
import ngSanitize from "angular-sanitize";

import services from "../components/services";
import home from "../components/home";
import register from "../components/register";
import login from "../components/login";
import dashboard from  "../components/front/dashboard";
import entrance from  "../components/front/entrance";
import lottery from "../components/front/lottery";
import lotterydirectives from "../components/lotterydirectives";
import accountdashboard from "../components/front/account-dashboard";
import accountinfo from "../components/front/account-info";
import cash from "../components/front/cash";
import award from "../components/front/award";
import charge from "../components/front/charge";
import noticelist from "../components/front/noticelist";
import agent from "../components/front/agent";
import chartjs from "angular-chart.js";
import filters from "../components/filters";
import interceptors from "../components/interceptors";
import common from "../components/common"

const MODULE_NAME = 'app';
angular.module(MODULE_NAME, [
    'oc.lazyLoad',
    'bw.paging',
    chartjs,
    ngSanitize,
    uirouter,
    ngAnimate,
    ngTouch,
    ngCookies,
    ngValidateMatch,
    // loadingbar,
    uibootstrap,
    services,
    home,
    register,
    login,
    dashboard,
    entrance,
    lottery,
    accountdashboard,
    accountinfo,
    cash,
    award,
    charge,
    lotterydirectives,
    customFilters,
    noticelist,
    agent,
    filters,
    interceptors,
    common,
]).config(["$urlRouterProvider", "$locationProvider","$logProvider",
           //"cfpLoadingBarProvider",
           "$cookiesProvider","ChartJsProvider", function ($urlRouterProvider, $locationProvider,$logProvider,
                                                           //cfpLoadingBarProvider,
                                                           $cookiesProvider,ChartJsProvider) {
    //开启html5模式，会将url上的“#!”去掉，看上去更像rest路径
    $locationProvider.html5Mode(false);
    //$locationProvider.hashPrefix('$#');
    $urlRouterProvider.otherwise('login');
    $logProvider.debugEnabled(true);
    // //禁用进度圆圈
    // cfpLoadingBarProvider.includeSpinner = false;
    // // cfpLoadingBarProvider.parentSelector = '#loading-bar-container';
    // //禁用进度激光条
    // cfpLoadingBarProvider.includeBar = false;
    $cookiesProvider.secure=true;
    ChartJsProvider.setOptions({ colors : [ '#803690', '#00ADF9', '#DCDCDC', '#46BFBD', '#FDB45C', '#949FB1', '#4D5360'] });
}]);

export default MODULE_NAME;